<div class="gap"></div>
<div class="gap"></div>
<section class="reports">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-body text-center">
                        <h1 class="blue">Web Report 3</h1>
                        <h3>Statewise Complaint Distribution Based On Gender </h3>
                        <h4>( As recorded by the National Anti Ragging Help Line )</h4>
                        <h2 class="blue">From 17/04/2012 upto <?php echo date('Y-m-d'); ?></h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">Overall Reports</h3>
                    </div>
                    <div class="panel-body">
                        <div class="Table" style="width:100%;">

                            <div class="Heading" style="background-color: #0072bc">
                                <div class="Cell">
                                    <p>State Name</p>
                                </div>
                                <?php foreach ($yearReport as $yearReports) { ?>
                                    <div class="Cell nopadding">
                                        <p class="center"><?php echo $yearReports->year; ?></p>
                                        <p class="innerp">Male</p><p class="innerp">Female</p><p class="innerp">Total</p>
                                    </div>
                                <?php } ?>
                                <div class="Cell">
                                    <p>Total</p>
                                </div>
                            </div>

                            <?php 
                            foreach ($stateyearReport as $stateyearReports) { $gettotal=''; ?>
                                <div class="Row">  
                                    <div class="Cell">
                                        <p><?php echo $stateyearReports->state; ?></p>
                                    </div>
                                    <?php foreach ($yearReport as $yearReports) { 
                                        $yearwisetotal=YearReport::mailCounter('Male', $yearReports->year, $stateyearReports->state) + YearReport::femailCounter('Female', $yearReports->year, $stateyearReports->state); 
                                    $gettotal=$gettotal+$yearwisetotal;
                                    
                                    ?>
                                    
                                        <div class="Cell nopadding">
                                            <p class="innerp"><?php echo YearReport::mailCounter('Male', $yearReports->year, $stateyearReports->state); ?></p>
                                            <p class="innerp"><?php echo YearReport::femailCounter('Female', $yearReports->year, $stateyearReports->state);  ?></p>
                                            <p class="innerp plast"><?php echo$yearwisetotal; ?></p>
                                        </div>
                                    <?php }  ?>
                                    <div class="Cell">
                                        <p><?php echo $gettotal; ?></p>
                                    </div>
                                </div>
                            <?php  }
 
                            ?>
                            
                            <div class="Row" style="background-color: #0072bc">  
                                <div class="Cell">
                                    <p>Grand Total</p>
                                </div>
                                <?php foreach ($yearReport as $yearReports) { ?>
                                    <div class="Cell nopadding">
                                        <p class="innerp"><?php echo YearReport::yearwisegenderqunetr('Male',$yearReports->year); ?></p>
                                        <p class="innerp"><?php echo YearReport::yearwisegenderqunetr('Female',$yearReports->year); ?></p>
                                        <p class="innerp"><?php echo YearReport::yearwisegenderqunetr('Male',$yearReports->year)+YearReport::yearwisegenderqunetr('Female',$yearReports->year); ?></p>
                                        
                                    </div>
                                <?php } ?>
                                <div class="Cell">
                                    <p><?php echo YearReport::totalCountreportgenderwise(); ?></p>
                                </div>
                            </div>

                            <div class="gap"></div>

                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">

                </div>
            </div>
        </div>
</section>
<div class="gap"></div>
